package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/12/17  9:46
 */
@ApiModel("关联关系参数")
public class RelationEvt implements Serializable{
    private static final long serialVersionUID = 2238273455142571950L;
    @ApiModelProperty("ID")
    @NotNull
    private Long id;
    @ApiModelProperty("关联ID列表")
    @NotEmpty
    private List<String> relateIds;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<String> getRelateIds() {
        return relateIds;
    }

    public void setRelateIds(List<String> relateIds) {
        this.relateIds = relateIds;
    }

    @Override
    public String toString() {
        return "RelationEvt{" +
            "id=" + id +
            ", relateIds=" + relateIds +
            '}';
    }
}
